package string;

public class StartsWithDemo {
    public static void main(String[] args) {
        String str = "www.tedu.com";
        boolean starts = str.startsWith("www");
        System.out.println(starts);
        boolean ends = str.endsWith(".com");
        System.out.println(ends);
    }
}
